package com.rc.evcharger.mapper.elec;

import com.rc.evcharger.common.base.BaseMapper;
import com.rc.evcharger.model.elec.ElecPile;
import com.rc.evcharger.model.elec.ElecPileExample;
import org.apache.ibatis.annotations.Param;

public interface ElecPileMapper extends BaseMapper<Long, ElecPile, ElecPileExample> {
    /**
     * 根据桩的逻辑地址查询桩
     *
     * @param rtua
     * @return
     */
    ElecPile getPileByLogicAddress(String rtua);

    /**
     * 根据桩群编号查询桩
     *
     * @param epNo
     * @return
     */
    ElecPile findByEpNo(String epNo);

    /**
     * 将所有桩设为离线
     */
    void allPileOffLine();

    ElecPile findByPileNoOrSlave(@Param(value = "pileNo") String pileNo);

}